// docs/.vitepress/config.js
module.exports = {
    title: 'Awesome UI',// 站点名称
    description: 'Just playing around.',
    base: '/',// 部署的基础路径
    head: [// 生成html的head配置：站点favicon...

    ],
    themeConfig: {
        algolia: {// 展示搜索框
            appKey: '',
            indexName: '',
            searchParameters: {
                faeFilters: ['tags: guide, api']
            }
        },
        nav: [// 头部导航
            { text: '指南', link: '/guide/intro/'},
            { text: '组件', link: '/components/forms/'},
            { text: 'NPM', link: 'https://www.npmjs.com/package/qi-ui-plus' },// 外部链接有特定标识
            { text: 'Gitee', link: 'https://gitee.com/cheerqjy/qi-ui-plus' },// 外部链接有特定标识
        ],
        sidebar: {// 左侧菜单 路由
            '/guide/': [
                { text: '介绍', link: '/guide/intro/'},
                { text: '组件库源码', link: '/guide/install/'},
                { text: '快速开始', link: '/guide/quickstart/'},
            ],
            '/components/': [
                { text: '表单form', link: '/components/forms/'},
                { text: '图标icon', link: '/components/icon/'},
                { text: '时间', link: '/components/date/'},
                // -- append sidebar --
            ]
        }
    },
    markdown: {// =展开收起
        config: (md) => {
            const { demoBlockPlugin } = require('vitepress-theme-demoblock')
            md.use(demoBlockPlugin)
        }
    },
    lastUpdated: '上次更新',// 获取每个文件最后一次 git 提交的 UNIX 时间戳(ms)，同时它将以合适的日期格式显示在每一页的底部
}
